<?php

namespace app\merchant\model;

use think\Model;

/**
 * 债权关系表 = 实际订单 数据报备
 */
class TpCredit extends Model
{
    //设置当前模型对应的完整数据表名称
    protected $table = 'tp_credit';
    
    CONST STATUS_DEFAULT = 0;//缺省,
    CONST STATUS_ORDER_COLLECT_SUCCESS = 1;//订单代收成功
    CONST STATUS_LOAN_SUCCESS = 2;//已放款
    CONST STATUS_GUARANTEE_COLLECT_COMMIT = 3;//担保代收提交
    CONST STATUS_GUARANTEE_COLLECT_SUCCESS = 4;//已担保代收
    CONST STATUS_GUARANTEE_COLLECT_FAILED = 5;//担保代收失败
    CONST STATUS_GUARANTEE_PAY_COMMIT = 6;//担保代付提交
    CONST STATUS_GUARANTEE_PAY_SUCCESS = 7;//担保代付成功
    CONST STATUS_GUARANTEE_PAY_FAILED = 8;//担保代付失败
    CONST STATUS_REPAY_SUCCESS = 9;//已还款
    CONST STATUS_REPAY_FAILED = 10;//还款失败
    CONST STATUS_PRODUCT_TENDER_PROCESSING = 11;//流标处理中
    CONST STATUS_PRODUCT_TENDER_SUCCESS = 12;//已流标
}
